package com.subaiqiao.yunshiyuan.entrance.ysy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.subaiqiao.yunshiyuan.basis.service.impl.BasisServiceImpl;
import com.subaiqiao.yunshiyuan.entrance.ysy.service.ProductCategoryService;
import com.subaiqiao.yunshiyuan.entrance.ysy.pojo.ProductCategory;
import com.subaiqiao.yunshiyuan.entrance.ysy.mapper.ProductCategoryMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.subaiqiao.yunshiyuan.entrance.ysy.vo.ProductCategoryVO;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author 曹朝禹
 * @since 2022-05-13
 */
@Service
@Transactional
public class ProductCategoryServiceImpl extends BasisServiceImpl<ProductCategory, ProductCategoryMapper> implements ProductCategoryService {

    @Override
    public Page<ProductCategoryVO> getProductCategoryVO(Page<ProductCategoryVO> page, QueryWrapper<ProductCategoryVO> wrapper){
        return page.setRecords(this.baseMapper.getProductCategoryVO(page, wrapper));
    }

    @Override
    public Integer FindProductCategoryCount() {
        return baseMapper.FindProductCategoryCount();
    }

    @Override
    public Integer FindProductCategoryParentCount() {
        return baseMapper.FindProductCategoryParentCount();
    }

    @Override
    public Integer FindCount() {
        return null;
    }

    @Override
    public ProductCategoryMapper getMapper() {
        return null;
    }
}
